/**
 * 用户管理路由 列表 详情 修改 删除
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
	const { router, controller, middleware } = app;

	const adminauth = middleware.tokenAuthentication()

	router.get("/api/admin/user", adminauth, controller.admin.user.index);
	router.put("/api/admin/user/:id", adminauth, controller.admin.user.update);

};
